﻿using System.ComponentModel.DataAnnotations;

namespace Shop.Model.Dto.Admin.Order;

public class AddOrderDto
{
    /// <summary>
    /// 用户Id
    /// </summary>
    [Required(ErrorMessage = "用户Id不可为空")]
    public int UserId { get; set; }
    
    /// <summary>
    /// 商品Id
    /// </summary>
    [Required(ErrorMessage = "商品不可为空")]
    public int GoodsId { get; set; }

    /// <summary>
    /// 商品规格Id
    /// </summary>
    [Required(ErrorMessage = "商品规格不可为空")]
    public int GoodsSpecId { get; set; }

    /// <summary>
    /// 商品数量
    /// </summary>
    [Required(ErrorMessage = "商品数量不可为空")]
    public int GoodsNum { get; set; }
    
    /// <summary>
    /// 收货人姓名
    /// </summary>
    [Required(ErrorMessage = "收货人姓名不可为空")]
    public string ConsigneeName { get; set; }
    
    /// <summary>
    /// 收货人电话
    /// </summary>
    [Required(ErrorMessage = "收货人电话不可为空")]
    public string ConsigneePhone { get; set; }
    
    /// <summary>
    /// 收货省
    /// </summary>
    [Required(ErrorMessage = "收货省不可为空")]
    public string ConsigneeProvince { get; set; }
    
    /// <summary>
    /// 收货市
    /// </summary>
    [Required(ErrorMessage = "收货市不可为空")]
    public string ConsigneeCity { get; set; }
    
    /// <summary>
    /// 收货区/县
    /// </summary>
    [Required(ErrorMessage = "收货区不可为空")]
    public string ConsigneeDistrict { get; set; }
    
    /// <summary>
    /// 收货详细地址
    /// </summary>
    [Required(ErrorMessage = "收货详细地址不可为空")]
    public string ConsigneeAddress { get; set; }
    
    /// <summary>
    /// 是否发放佣金
    /// </summary>
    public bool IsCommission { get; set; }
    
    /// <summary>
    /// 支付金额
    /// </summary>
    [Required(ErrorMessage = "支付金额不可为空")]
    public decimal OrderAmount { get; set; }
    
    
    /// <summary>
    /// 支付方式
    /// </summary>
    [Required(ErrorMessage = "支付方式不可为空")]
    public int PayChannel { get; set; }
}